package com.hanthink.system.domain.manhour;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;

/**
 * 计划和实际用工差异分析对象 ManHourFactPlanData
 *
 * @author hanthink
 * @date 2022-01-06
 */
public class ManHourFactPlanData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 工厂代码 */
    @Excel(name = "工厂代码")
    private String companyid;

    /** 上班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workdate;

    /** 班次 */
    @Excel(name = "班次")
    private String pshiftid;

    /** 计划操作工 */
    @Excel(name = "计划操作工")
    private Long planoperateworks;

    /** 计划辅助用工 */
    @Excel(name = "计划辅助用工")
    private Long planassistworks;

    /** 实际用工 */
    @Excel(name = "实际用工")
    private BigDecimal factworks;

    /** 临时用工 */
    @Excel(name = "临时用工")
    private BigDecimal facttemporaryworks;

    /** 用工差异 */
    @Excel(name = "用工差异")
    private BigDecimal worksgap;

    /** 差异百分比 */
    @Excel(name = "差异百分比")
    private BigDecimal gaprate;

    /** 缺口分析 */
    @Excel(name = "缺口分析")
    private String analysis;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCompanyid(String companyid)
    {
        this.companyid = companyid;
    }

    public String getCompanyid()
    {
        return companyid;
    }
    public void setWorkdate(Date workdate)
    {
        this.workdate = workdate;
    }

    public Date getWorkdate()
    {
        return workdate;
    }
    public void setPshiftid(String pshiftid)
    {
        this.pshiftid = pshiftid;
    }

    public String getPshiftid()
    {
        return pshiftid;
    }
    public void setPlanoperateworks(Long planoperateworks)
    {
        this.planoperateworks = planoperateworks;
    }

    public Long getPlanoperateworks()
    {
        return planoperateworks;
    }
    public void setPlanassistworks(Long planassistworks)
    {
        this.planassistworks = planassistworks;
    }

    public Long getPlanassistworks()
    {
        return planassistworks;
    }
    public void setFactworks(BigDecimal factworks)
    {
        this.factworks = factworks;
    }

    public BigDecimal getFactworks()
    {
        return factworks;
    }
    public void setFacttemporaryworks(BigDecimal facttemporaryworks)
    {
        this.facttemporaryworks = facttemporaryworks;
    }

    public BigDecimal getFacttemporaryworks()
    {
        return facttemporaryworks;
    }
    public void setWorksgap(BigDecimal worksgap)
    {
        this.worksgap = worksgap;
    }

    public BigDecimal getWorksgap()
    {
        return worksgap;
    }
    public void setGaprate(BigDecimal gaprate)
    {
        this.gaprate = gaprate;
    }

    public BigDecimal getGaprate()
    {
        return gaprate;
    }
    public void setAnalysis(String analysis)
    {
        this.analysis = analysis;
    }

    public String getAnalysis()
    {
        return analysis;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyid", getCompanyid())
                .append("workdate", getWorkdate())
                .append("pshiftid", getPshiftid())
                .append("planoperateworks", getPlanoperateworks())
                .append("planassistworks", getPlanassistworks())
                .append("factworks", getFactworks())
                .append("facttemporaryworks", getFacttemporaryworks())
                .append("worksgap", getWorksgap())
                .append("gaprate", getGaprate())
                .append("analysis", getAnalysis())
                .toString();
    }
}
